package com.qfedu.vhr.system.service;

import com.qfedu.vhr.common.RespBean;
import com.qfedu.vhr.system.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qfedu.vhr.system.entity.vo.AddDepartmentVO;
import com.qfedu.vhr.system.entity.vo.DepartmentVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhangsan
 * @since 2023-01-11
 */
public interface IDepartmentService extends IService<Department> {

    List<DepartmentVO> getAllDeptWithChildren();

    /**
     * 添加部门 存储过程
     * @param addDepartmentVO
     * @return
     */
    RespBean addDepartment(AddDepartmentVO addDepartmentVO);


    /**
     * 删除部门
     * @param id
     * @return
     */
    RespBean deleteDeptById(Integer id);
}
